package com.auxgroup.smarthome.inner.entity;


import com.auxgroup.smarthome.entity.AbstractGenericEntity;

import javax.persistence.*;

/**
 * Created by niuGuangzhe on 2017/7/26.
 */
@Entity
@Table(name = "device_sn_model_mapping",indexes = {@Index(columnList = "modelItem", name = "index_device_sn_model_mapping_modelitem")})
public class DeviceSnModelMappingEntity extends AbstractGenericEntity {
    @Id
    @Column(columnDefinition = "VARCHAR(128) NOT NULL COMMENT '设备Sn码'")
    private String sn;

    @Column(columnDefinition = "VARCHAR(128) NOT NULL COMMENT '空调内机物料主键'")
    private String itemId;

    @Column(columnDefinition = "VARCHAR(20) COMMENT '来自的Mes系统标识' ")
    private String factoryId;

    @Column(columnDefinition = "VARCHAR(128) NOT NULL COMMENT '空调内机物料 每种型号都有唯一物料'")
    private String modelItem;

    @Column(columnDefinition = "BIT DEFAULT 0 COMMENT '是否删除 1：删除 0：未删除'")
    private Boolean trash;

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getModelItem() {
        return modelItem;
    }

    public void setModelItem(String modelItem) {
        this.modelItem = modelItem;
    }

    public Boolean getTrash() {
        return trash;
    }

    public void setTrash(Boolean trash) {
        this.trash = trash;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(String factoryId) {
        this.factoryId = factoryId;
    }
}